//
//  PlantEntity.m
//  SXH
//
//  Created by 龚啸 on 15/11/12.
//  Copyright © 2015年 lyss. All rights reserved.
//

#import "PlantEntity.h"

@implementation PlantEntity
- (instancetype)initWithAttributes:(NSDictionary *)attributes
{
    self = [super init];
    if (!self) {
        return nil;
    }
    
    self.ID = [attributes valueForKeyPath:@"id"];
    self.album_thumb = [NSString stringWithFormat:@"%@/%@", IMAGE_URL,[attributes valueForKeyPath:@"album_thumb"]];
    self.title = [attributes valueForKeyPath:@"title"];
    self.url = [attributes valueForKeyPath:@"url"];
    return self;
    
}
@end
